<template>
  <div id="box">
    <div class="boxtop">
      <div class="boxone">
        <div class="boxoneleft">
          {{ lclist.name }}
          <div class="imgs">
            <img src="@/assets/img/star24_on@2x.png" alt="" />
            <img src="@/assets/img/star24_on@2x.png" alt="" />
            <img src="@/assets/img/star24_on@2x.png" alt="" />
            <img src="@/assets/img/star24_on@2x.png" alt="" />
            <img src="@/assets/img/star24_off@2x.png" alt="" />
            (24) 月售单
          </div>
        </div>
        <div class="boxoneright">
          <p><van-icon name="like-o" /></p>
          <p>收藏</p>
        </div>
      </div>
      <div class="boxtwo">
        <div>
          <p>起送价</p>
          <p>
            <span>{{ lclist.minPrice }}</span
            >元
          </p>
        </div>
        <div>
          <p>商家配送</p>
          <p>
            <span>{{ lclist.deliveryPrice }}</span
            >元
          </p>
        </div>
        <div>
          <p>平均配送时间</p>
          <p>
            <span>{{ lclist.deliveryTime }}</span
            >分钟
          </p>
        </div>
      </div>
    </div>
    <hr />
    <div class="notice">
      <p class="btone">公告与活动</p>
      <div>
        <p>{{ lclist.bulletin }}</p>
      </div>
    </div>

    <div class="boxbottom" v-for="(item, index) in lclist.supports" :key="index">
      <div class="lcyhsmall">
        <img src="@/assets/img/discount_3@2x.png" alt="" />
        <span>{{ item.description }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  name: "",
  data() {
    return {
      lclist: [],
    };
  },
  mounted() {
    this.getdata();
  },
  methods: {
    getdata() {
      this.$axios.get("/json/data.json").then((res) => {
        console.log(res.seller);
        this.lclist = res.seller;
      });
    },
  },
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
#box{
  height: 480px;
  overflow:hidden;
}
.boxtop {
  padding: 0px 24px;
  .boxone {
    height: 70px;
    padding: 8px 0px;
    border-bottom: 1px solid #d6d5d5;
    display: flex;
    justify-content: space-between;
    .boxoneleft {
      .imgs {
        margin-top: 8px;
      }
    }
    .boxoneright {
      p:nth-child(1) {
        text-align: center;
        .van-icon {
          font-size: 24px;
        }
      }
    }
  }
  .boxtwo {
    height: 80px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    div {
      flex: 1;
      p:nth-child(1) {
        font-size: 14px;
        color: #979797;
      }
      p:nth-child(2) {
        span {
          font-size: 24px;
        }
      }
    }
    div:nth-child(2) {
      border-left: 1px solid #cfcfcf;
      border-right: 1px solid #cfcfcf;
    }
  }
}
hr {
  height: 18px;
  border: 0px;
  background-color: #eeeeee;
}
.notice {
  margin: 18px;
  .btone {
    font-size: 15px;
  }
  div {
    padding: 3px 16px;
    font-size: 10px;
    p {
      line-height: 20px;
      color: red;
    }
  }
}
.boxbottom{
  padding: 0px 25px;
  img{
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
  .lcyhsmall{
    padding: 16px 0px 16px 12px;
    display: flex;
    align-items: center;
    border-top: 1px solid #d1d1d1;
    font-size: 14px;
  }
}
</style>
